package com.example.okhttputils.com.utils.base.interfaces;

import java.util.Map;

/**
 * file description
 * Created by 72038967 on 2019/8/27.
 */
public  class HttpUtils {


    /**
     * @param url
     * @param params
     * @param responseCallBack
     */
    public static void doGet(String url, Map<String, String> params, CallBackUtil responseCallBack) {
        UrlHttpUtil.get(url, params, responseCallBack);
    }


    /**
     * @param url
     * @param prams
     * @param responseCallBack
     */
    public static void doPost(String url, Map<String, String> prams, CallBackUtil responseCallBack) {
        UrlHttpUtil.post(url,prams,responseCallBack);
    }


    /**
     * @param url
     * @param responseCallBack
     */
    public static void downLoadImage(String url, CallBackUtil.CallBackFile responseCallBack) {
        UrlHttpUtil.downloadFile(url,responseCallBack);
    }

    /**
     * @param url
     * @param json
     * @param callBack
     */
    public static void doPostJson(String url, String json, CallBackUtil callBack) {
       UrlHttpUtil.postJson(url,json,callBack);
    }
}
